import { postAxios, getAxios } from '@/lib/http';
export const supplierApi = {
  // 新增
  add: (data) => {
    return postAxios('/supplier/add', data);
  },
  // 分页查询
  getList: (data) => {
    return postAxios('/supplier/page/query', data);
  },
  // 删除
  delete: (id) => {
    return getAxios('/supplier/delete/' + id);
  },
  // 查看邮件详情
  getDetail: (id) => {
    return getAxios('/supplier/detail/' + id);
  },
  // 更新编辑邮件
  update: (data) => {
    return postAxios('/supplier/update', data);
  }
};
